package ex03;

public class Cha2 {
	public int cha(String x, String y){
		int n=0,i,j=0,k;
		for(i=0;i<x.length();i++){
			if(x.indexOf(y)!=-1){
				n++;
				x=x.substring(x.indexOf(y)+y.length());
			}
			else break;
		}		
		return n;
	}
}
